package cn.com.guage.single.idler;

public class Singleton5 {

	public Singleton5() {
	}

	private static class SingletonInner {
		private static Singleton5 INSTANCE = new Singleton5();

	}
	
	public static Singleton5 getInstance() {
		return SingletonInner.INSTANCE;
	}

	public void say() {
		System.out.println("say");
	}

	public static void main(String[] args) {
		Singleton5 instance1 = Singleton5.getInstance();
		Singleton5 instance2 =  Singleton5.getInstance();
		System.out.println(instance1);
		System.out.println(instance2);
	}

}
